import request from '@/utils/request'

// 查询群信息列表
export function listQuninfo(query) {
  return request({
    url: '/ziliao/quninfo/list',
    method: 'get',
    params: query
  })
}

// 查询群信息详细
export function getQuninfo(id) {
  return request({
    url: '/ziliao/quninfo/' + id,
    method: 'get'
  })
}

// 新增群信息
export function addQuninfo(data) {
  return request({
    url: '/ziliao/quninfo',
    method: 'post',
    data: data
  })
}

// 修改群信息
export function updateQuninfo(data) {
  return request({
    url: '/ziliao/quninfo',
    method: 'put',
    data: data
  })
}

// 删除群信息
export function delQuninfo(id) {
  return request({
    url: '/ziliao/quninfo/' + id,
    method: 'delete'
  })
}
